package com.capgemini.teamtwo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.capgemini.teamtwo.entity.PageRequest;
import com.capgemini.teamtwo.entity.ProjectMember;
import com.capgemini.teamtwo.entity.dto.ProjectMemberDTO;
import com.capgemini.teamtwo.entity.dto.ProjectUser;
import com.capgemini.teamtwo.entity.dto.ProjectUserQueryDTO;
import com.github.pagehelper.PageInfo;

public interface ProjectMemberService extends IService<ProjectMember> {

    /**
     * 项目用户列表
     * @param request 分页条件
     * @return 用户列表
     */

    PageInfo<ProjectUserQueryDTO> findProjectUsers(PageRequest<ProjectMemberDTO> request);


    /**
     * 释放人员
     * @param dto
     * @return
     */
    Boolean releaseById(ProjectMemberDTO dto);


    /**
     * 查询bench用户列表
     * @param request 分页条件
     * @return 分页结果
     */
    PageInfo<ProjectUser> findByUsername(PageRequest<String> request);


    /**
     * 增加人员
     * @param dto
     * @return
     */
    Boolean addBatch(ProjectMemberDTO dto);

}
